Method and apparatus for raid on memory

ABSTRACT

A method for protecting memory is provided. The method includes reading a block of data from a storage drive and writing the block of data to a first memory portion and a second memory portion. The method also includes managing the first memory portion and the second memory portion to protect the block of data. The block of data can be recovered from a non-failing portion in case either the first memory portion or the second memory portion fails.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates generally to the field of computing technology, and more particularly, to methods and structures for optimizing the performance and fault tolerance of a computing system.

2. Description of the Related Art

As is well known, computer systems typically include a processor, a main memory, and a secondary storage memory. Normally, the processor is a Central Processing Unit (CPU) or a microprocessor, the main memory is Random Access Memory (RAM), and the secondary storage is a hard disk drive. As the information such as data and instructions in RAM and the hard disk drives are executed by the processor, data protection has become one of the chief concerns in designing RAM and hard disk drives. Specifically, data protection is important as valuable data stored in hard disk drives, or temporarily held in RAM, can be lost due to abnormal occurrences such as human errors, equipment failures, and adverse environmental conditions.

FIG. 1 illustrates a simplified schematic diagram of a host adapter chip 102 of the prior art as it includes a dedicated memory 104, a Redundant Array of Independent Disks (RAID) Input/Output Processor (RAID IOP) adapter chip 108, and a Small Computer System Interface (SCSI) host adapter chip 110. As shown, the host adapter chip 102 is designed to be plugged into the primary PCI bus using a plug 112. As also shown, the RAID IOP is coupled to the dedicated memory 104 through a bus 106.

Typically, the dedicated memory 104 can be either soldered to the motherboard or be a Dual In-Line Memory Module (DIMM) that is plugged onto the host adapter chip 102 or a memory chip (not shown in the Figure). Irrespective of being soldered to the motherboard or being a DIMM, the larger the size of the dedicated memory 104 is, the better the performance of the computer system will be. For that reason, use of larger memory sizes has become a predominate trend. DIMMs have specifically played a significant role in promoting the use of expanded memory, because additional DIMMs can be added as a need for additional memory arises.

Despite its advantages, using DIMMs has proven to be less than reliable. That is, despite using multiple DIMMs, the failure of one DIMM to function properly is disastrous and costly, as it results in system shut down. In one example, specifically, the failure of one DIMM used on the host adapter chip results in the failure of the host adapter chip 102, which ultimately causes corruption of data. In such situation, the entire computing system must be shut down causing a significant loss. Additionally, shutting down the entire computer system further creates unknown effects on system components and data stored therein. Furthermore, eliminating the problem requires the replacement of the DIMM, subsequent to which, requires the reconfiguration of the entire system.

In view of the foregoing, there is a need for a new methodology and apparatus for improving the performance and fault tolerance of computer systems through improving data integrity.

SUMMARY OF THE INVENTION

Broadly speaking, the present invention fills these needs by providing an apparatus and methods for improving the performance and increasing the fault tolerance of a computing system by using Redundant Array of Independent disks (RAID) on memory. In one implementation, the embodiments of present invention implement RAID on a dedicated memory of a host adapter chip. It should be appreciated that the present invention can be implemented in numerous ways, including as a process, an apparatus, a system, a device, or a method. Several inventive embodiments of the present invention are described below.

In one embodiment, a method for protecting memory is provided. The method includes reading a block of data from a storage drive and writing the block of data to a first memory portion and a second memory portion. The method also includes managing the first memory portion and the second memory portion to protect the block of data. The block of data can be recovered from a non-failing portion in case either the first memory portion or the second memory portion fails.

In another embodiment, a method for performing RAID protection on data stored in a RAID memory of a computer system that has a RAID controller and a RAID memory is provided. The method includes defining RAID protection for data stored in a set of storage drives and defining RAID protection for the RAID memory. The method also includes operating the RAID controller on each of the storage drives and the RAID memory. The RAID controller operates to redundantly protect data to be stored in the RAID memory while reading and writing to the set of storage drives in accordance with the defined RAID protection of the set of storage drives.

In yet another embodiment, a system for increasing a performance and fault tolerance of a computer system is provided. The system includes a storage drive, a memory, and a RAID controller. The storage drive is configured to store data and the memory is protected by Redundant Array of Independent Disks (RAID). The RAID controller is configured to store the data in the storage drive into the memory. The RAID controller is further configured to redundantly protect data stored into the memory.

In still another embodiment, a computer program embodied on a computer readable medium for performing RAID on data stored in a RAID memory is provided. The computer program includes a code segment that defines RAID protection for data stored in a set of storage drives and a code segment that defines RAID protection for the RAID memory. The computer program further includes a code segment that operates a RAID controller on each of the storage drives and the RAID memory. The RAID controller operates so as to redundantly protect data to be stored in the RAID memory while reading and writing to the set of storage drives in accordance with the defined RAID protection of the set of storage drives.

The advantages of the present invention are numerous. Most notably, RAID on memory significantly increases system performance and the reliability of data in a computer system. For instance, the RAID level 0 on a host adapter chip significantly improves the performance of the computer system. In one example, this occurs by using parallel reading and caching of data from a hard disk drive into a plurality of DIMMs or a plurality of virtual memory partitions. Another advantage of the present invention is that by using the RAID level 1 on memory, the highest reliability of data can be provided. Yet another advantage of performing RAID on memory is that by implementing multiple memory chips (e.g., DIMMs) to construct a dedicated array RAID array of memory on a host adapter chip, the embodiments of the present invention facilitate performing of hot plugging on a faulty memory chip (e.g., DIMM). In this manner, the embodiments of the present invention substantially eliminate down time associated with shutting down the entire computing system to replace faulty memory.

Other aspects and advantages of the invention will become apparent from the following detailed description, taken in conjunction with the accompanying drawings, illustrating by way of example the principles of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be readily understood by the following detailed description in conjunction with the accompanying drawings, and like reference numerals designate like structural elements.

FIG. 1 illustrates a simplified block diagram of a host adapter chip in accordance with the prior art.

FIG. 2 depicts a simplified schematic diagram of a computer system having a RAID array of virtual dedicated memory partitions, in accordance with one embodiment of the present invention.

FIG. 3A is a simplified schematic diagram illustrating the achievement of higher performance through striping of data using RAID array of dedicated memory partitions, in accordance with yet another embodiment of the present invention.

FIG. 3B is a simplified schematic diagram showing a plurality of DIMMs forming a RAID array of memory, in accordance with still another embodiment of the present invention.

FIG. 3C is a simplified schematic diagram depicting striping of data from a RAID array of hard disks into a RAID array of virtual memory partitions, in accordance with still another embodiment of the present invention.

FIG. 4A is a simplified schematic diagram illustrating a RAID level 1 on memory, in accordance with yet another embodiment of the present invention.

FIG. 4B is a simplified schematic diagram illustrating caching of data from a RAID level 1 on hard disk drives to a RAID level 1 on memory constructing from a multiple DIMMs, in accordance with yet another embodiment of the present invention.

FIG. 5 is a simplified schematic diagram of a computer system including a plurality of dedicated virtual memory partitions, in accordance with yet another embodiment of the present invention.

FIG. 6 is a flowchart diagram of method operations performed in hot plugging a faulty DIMM, in accordance with yet another embodiment of the present invention.

FIG. 7 is a flowchart diagram of method operations performed in hot plugging a single DIMM, in accordance with yet another embodiment of the present invention.

FIG. 8 is a flowchart diagram of method operations performed in upgrading a DIMM through hot plugging, in accordance with yet another embodiment of the present invention.

FIG. 9 is a flowchart diagram of method operations in performing a RAID level 1 on memory on a plurality of DIMMs, in accordance with yet another embodiment of the present invention.

FIGS. 10A-10H illustrate a plurality of exemplary Graphic User Interfaces (GUI) in a RAID on Memory Utility, in accordance with yet another embodiment of the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

An invention for computer implemented methods for increasing the performance and the fault tolerance of a computing system through ensuring integrity of data, is provided. Preferably, the embodiments of the present invention implement Redundant Array of Independent (Inexpensive) Disks (RAID) on Memory to improve the performance and the reliability of data in a dedicated memory of a host adapter chip. In one example, RAID on memory includes a plurality of virtual memory partitions. In a different implementation, RAID on memory includes a plurality of memory chips. In one example, the memory chips implemented are DIMMs.

By way of example, in a RAID level 0 on memory data, within a hard disk drive is stripped between a plurality of DIMMs, or a plurality of virtual memory partitions. In a different example, a RAID level 1 on memory, data within a hard disk is read and cached into a pair of DIMMs or two virtual memory partitions. Preferably, implementing multiple DIMMs enables the hot plugging of a faulty DIMM.

Reference is now made to FIG. 2 illustrating a simplified schematic diagram of a computer system 200 having a RAID on memory including a plurality of dedicated virtual memory partitions 204 a and 204 b, in accordance with one embodiment of the present invention. The computer system 200 includes a host processor 214, a primary Peripheral Component Interconnect (PCI) bus 218, a host memory 216, a host adapter card 202, and a RAID array of hard disk drives 212. The host processor 214 and the host memory 216 are coupled to the primary PCI bus 218. The host processor 214 processes information such as data and instructions while the host memory 216 stores and provides information to the processor 214.

The primary PCI bus provides a high speed data path between the CPU 214 and the connected peripheral devices so as to provide additional functionality. For instance, the RAID array of hard disk drives 212 is connected to the primary PCI 218 through a host adapter card 202. The host adapter card 202 is coupled to a secondary PCI bus 222 that is coupled to the PCI-system bus bridge 220. The host adapter card 202 is configured to interface and control access to the RAID array of hard disk drives 212. The host adapter card 202 includes a RAID Input/Output Processor (RAID IOP) 208, a dedicated memory 204, and a SCSI controller 210.

The RAID IOP 208 includes a Direct Memory Access (DMA) engine 209 configured to transfer data from the RAID array of hard disk drives 212 to one or more of virtual memory partitions 204 a and 204 b of the RAID array of virtual memory partitions 204. In one example, the DMA engine has multi-channels thus allowing parallel transfer of data from any of the hard disk drives 212 a and 212 b to any of virtual memory partitions 204 a and 204 b of the RAID array of virtual memory partitions 204. In one embodiment, the RAID IOP further includes a memory controller 211 configured to interface and control access to the virtual memory partitions 204 a and 204 b of the RAID array of virtual memory partitions 204.

Achieving higher performance through striping of data using RAID array of dedicated memory partitions 204 can further be understood with respect to the simplified schematic diagram shown in FIG. 3A, in accordance with one embodiment of the present invention. As shown, data stored in the RAID array of hard disk drives 212 is cached into the RAID array of dedicated memory partitions 204. The RAID array of hard disk drives 212 includes a plurality of hard disk drives 212 a through 212 _(n). One container 212′ shows two hard drives 212 a and 212 b respectively transferring 64 Mbytes of data in portions 214 a and 214 b using a striping technique. Each portion 214 a and 214 b writes 32 Mbytes of data in 204 a-1 and 204 b-1, and 204 a-2 and 204 b 2 of virtual memory partitions 204 a and 204 b, correspondingly.

In one exemplary embodiment, a plurality of parameters of a desired memory RAID level is provided to the DMA engine 209 of the RAID IOP 208. For instance, in the embodiment of FIG. 3A, a desired RAID level 0, which is memory striping, is provided to the RAID IOP 208. That is, data stored in the RAID array of hard disk drives 212 are interleaved across multiple virtual memory partitions 204 a and 204 b, providing increased performance.

As shown, a portion of the hard disk drive 212 a of the RAID array of hard disk drives 212 operates on data sectors totaling 64 MB, which under RAID on memory level 0 is configured to be stripped between the virtual memory partition 204 a and 204 b, equally. That is, the data contents of the portion 214 a of the hard disk drive 212 a is read and subsequently interleaved equally between the virtual memory partitions 204 a and 204 b. By way of example, using 213 a, a first 32 Mbytes of data in the hard disk 212 a is read and then cached in 204 a-1 of the virtual memory partition 204 a. Then, using the 213 a′, a second 32 Mbytes of data in the hard disk drive 212 a is read and cached in 204 b-1 of the virtual memory partition 204 b. Similarly, a first portion of data stored within hard disk drive 212 b is read and cached in 204 a-2 of virtual memory partition 204 a using 213 b. In a like manner, a second portion of data stored within the hard disk drive 212 b is read and cached into a 204 b-2 of the virtual memory partition 204 b.

In one example, the DMA engine is designed such that it is multi-channeled giving the DMA engine the capability to transfer the first and second portions of data within the hard disk drive 212 a in parallel. In this manner, advantageously, the period of time required to read the entire 64 Mbytes of data stored within the hard disk drive 212 a is reduced substantially by half. In a like manner, reading of the first and second portions of data stored within the hard disk drive 212 b and caching same into the first and second virtual memory partitions is reduced substantially by half.

Additionally, it must be noted that in a different embodiment, the time required to read data stored in each of the hard disk drives 212 a and 212 b may be reduced by caching the stored data within each of the hard disk drives 212 a and 212 b into three or four (i.e., more than two) virtual memory partitions. In this manner, the time required to read the 64 Mbytes of data stored in each portion 214 a and 214 b of the corresponding hard disk drives 212 a and 212 b can be reduced by one-third and one-fourth, respectively.

In a different implementation, as shown in FIG. 3B, a plurality of DIMMs 204 and 204′ can be used to cache data read from each of the hard disk drives 212 a and 212 b, in accordance with one embodiment of the present invention. In this example, the first portion of the 64 Mbytes data stored in the hard disk drive 212 a is read and then cached into a 204-1 of a DIMM 204 using 213 a. In a same manner, the second portion of data stored in hard disk drive 212 a is read and cached into a 204′-1 of a DIMM 204′ using 213 a′. As shown, as a result of being multi-channeled, the DMA engine 209 is capable of reading the first portion and the second portion of data in the hard disk drive 212 a in parallel, reducing the time required for caching the entire data by half.

Similarly, the first portion of data stored in the hard disk drive 212 b is read and then cached into 204-2 of DIMM 204 using 213 a′. Then, the second portion of data stored in the second hard disk drive 212 b is read and cached into 204′-2 of DIMM 204′ using 213 b′. Thus, again, the multi-channel DMA engine 209 enables the parallel reading of the first and second portions of the hard disk drive 212 b as well as parallel caching of the first and second portions of the data in 204-2 of DIMM 204 and 204′-2 of DIMM 204′. Data read from each of the hard disk drives 212 a and 212 b is beneficially interleaved between two DIMMs, in parallel, thus reducing the time required to read and write data substantially by half.

It must be noted that although the embodiments of the present invention are shown to include DIMMs, one having ordinary skill in the art should appreciate that any suitable memory chip can be implemented to store data (e.g., memory sticks, Single In-line Memory Module (SIMMs), etc.)

Reference is made to FIG. 3C depicting the striping of data from the RAID array of hard disk drives 212 into a RAID array of virtual memory partitions 204, in accordance with one embodiment of the present invention. As shown, the memory 204 has been virtually divided into four partitions of 204 a through 204 d. In one example, a first portion of data stored within the hard disk drive 212 a is cached and stripped into 204 a-1, the second portion of data stored within the hard disk drive 212 a is cached and interleaved into 204 b-1, a third portion of data stored within the hard disk drive 212 a is cached and interleaved into 204 c-1, and a fourth portion of data stored within the hard disk drive 212 a is cached and interleaved into 204 d-1, respectively.

Similarly, the first portion of data stored within the hard disk drive 212 b is cached and interleaved into the 204 a-2 of the first virtual memory partition 204 a, the second portion of data stored within the hard disk drive 212 b is cached and interleaved into the 204 b-2 of the second virtual memory partition 204 b, the third portion of data stored within the hard disk 212 b is cached and interleaved into 204 c-2 of the third virtual memory partition 204 c, and the fourth portion of data stored within the hard disk 212 b is cached and interleaved into 204 d-2 of the fourth virtual memory partition 204 d, correspondingly.

In one exemplary embodiment, each of the first portions of the hard disks 212 a and 212 b are cached into 204 a-1 and 204 a-2 using 213 a and 213 b. In a like manner, each of the second portions of the hard disks 212 a and 212 b are cached into 204 b-1 and 204 b-2 using 213 a′ and 213 b′; each of the third portions of the hard disks 212 a and 212 b are cached into 204 c-1 and 204 c-2 using 213 a″ and 213 b″; and each of the fourth portions of the hard disks 212 a and 212 b are cached into 204 d-1 and 204 d-2 using 213 a′″ and 213 b′″. This is specifically made possible by the multi-channel DMA engine capable of reading and caching data from multiple hard disk drives into multiple virtual memory partitions of the memory.

Turning to FIG. 4A, implementing a RAID level 1 on memory can further be understood, in accordance with one embodiment of the present invention. The RAID level 1 on memory is mirroring which is one-hundred percent duplication of data within the disks. In the embodiment of FIG. 4A, data within the hard disk drive 212 a and 212 b are duplicates, providing higher system reliability. In accordance to one example, data stored within the hard disk drive 212 a (e.g., a data portion 214 a of 64 MB) is read and cached into the first virtual memory partition 204 a. Similarly, data stored within the hard disk drive 212 b (e.g., a data portion 214 b of 64 MB) is read and cached into the virtual memory partition 204 b, in parallel. As discussed in more detail above, parallel caching of data stored within the hard disk drives 212 a and 212 b has been made possible using the multi-channel DMA engine 209 and the virtual splitting of the memory into two virtual partitions, each having a size of 64 MB. Each of the first and second memory partitions 204 a and 204 b having the size of 64 Mbytes is capable of caching in 64 Mbytes of data, which in this embodiment, are identical. Of course, memory can have much larger sizes, but for purposes of example, 64 Mbytes is used.

In this manner, data duplicated within the hard disk drives 212 a and 212 b are also duplicated in virtual memory partitions 204 a and 204 b, increasing the reliability of the system. As a consequence, a corruption of data cached into the second virtual memory partition 204 b will have no significant negative effect, as an identical copy of the data is cached into the first virtual memory partition 204 a. Thus, the RAID level 1 on memory of the present invention beneficially increases the fault tolerance of the system.

In a different example, as shown in FIG. 4B, multiple DIMMs can be implemented to cache duplicated data stored within the hard disk drives 212 a and 212 b using the RAID level 1 on memory of the present invention, in accordance with one embodiment of the present invention. As illustrated, data potion 214 a stored within the hard disk drive 212 a having a size of 64 Mbytes or larger is read and cached into a first DIMM 204 while data portion 214 b stored within the hard disk drive 212 b is read and cached into the second DIMM 204′. Each of the first DIMM and the second DIMM 204 and 204′ has a size of 64 Mbytes, as shown in 204-1 and 204′-1 and each has a respective address of X and Y. That is, when different DIMMs are implemented to cache duplicated data, the caching of data is facilitated by using each of the addresses of the first and second DIMMs 204 and 204′. Again, in this embodiment, duplicated data stored within the hard disk drives 212 a and 212 b are cached into two different DIMMs 204 and 204′, despite the data within the two hard disk drives 212 a and 212 b being duplicate. In this manner, corruption of data within the first and second DIMMs 204 or 204′, respectively, has a minimal negative effect on the system.

A simplified schematic diagram of a computer system 500 having a RAID array on memory of a plurality of virtual memory partitions 204 a and 204 b is illustrated in FIG. 5, in accordance with one embodiment of the present invention. The computer system 500 includes a host processor (CPU) 214, a primary Peripheral Component Interconnect (PCI) bus 218, a host memory 216, a host adapter card 202, and a RAID array of hard disk drives 212. The primary PCI bus provides a high speed data path between the CPU 214 and the connected peripheral devices. The RAID array of hard disk drives 212 is connected to the primary PCI 218 through a host adapter card 202. The secondary PCI bus 222 is coupled to the PCI-system bus bridge 220. The host adapter card 202 interfaces and controls access to the RAID array of hard disk drives 212.

The host adapter card 202 includes a RAID Input/Output Processor (RAID IOP) 208, a RAID array of dedicated memory 204, and a SCSI controller 210. The RAID IOP 208 includes a Direct Memory Access (DMA) engine 209, firmware 217, and a controller 211. The DMA engine is configured to transfer data from the RAID array of hard disk drives 212 to one or more of virtual memory partitions 204 a and 204 b of the dedicated RAID array of memory 204. In one example, the DMA engine 209 has multi-channels, thus allowing parallel transfer of data from any of the hard disk drives 212 a and 212 b to any of virtual memory partitions 204 a and 204 b of the dedicated RAID array of memory 204. The memory controller 211 interfaces and controls access to the virtual memory partitions 204 a and 204 b of the dedicated RAID array of memory 204 implementing 206 a and 206 b, respectively.

The firmware 217 is a software interface configured to run on the RAID IOP. In one example, the RAID parameters (e.g., RAID level, necessary number of virtual memory partitions, number of containers, etc.) are defined by the firmware 217. The firmware 217 then implements the parameters to virtually split the dedicated memory 204. Thus, the firmware 217 is aware of the number of virtual memory partitions and their associated addresses.

FIG. 6 illustrates a flow chart 600 of method operations performed in hot plugging a faulty DIMM, in accordance with one embodiment of the present invention. The method begins in operation 602 in which the host adapter chip is configured so as to include more than one DIMM. Then, in operation 604, an error is detected in one of the DIMMs. For instance, depending on the situation, the error may be having a faulty DIMM or having corrupted data on one of the DIMMs. Proceeding to operation 604, it is determined that the error is due to having a faulty DIMM.

Upon making such detection, in operation 608, a user's input to replace the faulty DIMM is received. In one example, the user is configured to interact using a RAID interface software such as Storage Manager Professional (SMPro) or Storage Manager on ROM (SMOR), both of which are RAID software interfaces developed by Adaptec of Milpitas in California.

Continuing to operation 610, the integrity of data in the faulty DIMM is ensured by reading out data content of the faulty DIMM. Next, in operation 612, the faulty DIMM is hot plugged. As used herein, “hot plugging a DIMM” is defined as shutting down the power to the existing DIMM in the computer system thus allowing the removal of same while the computer system power and the host adapter chip power are still on and operating. Thus, in operation 612, the power to the faulty DIMM is shut down, which in one embodiment, is performed by the firmware.

Next, in operation 614, the faulty DIMM is removed and replaced. Upon replacing the faulty DIMM, in operation 616, connection is established to the replaced DIMM. In one instance, the firmware restores power to the replaced DIMM. Then, in operation 618, the data content of the faulty DIMM is restored into the replacement DIMM. In this manner, the integrity of data cached into a plurality of DIMMs forming a RAID array of memory is beneficially ensured without the necessity of shutting down the power to the entire system.

Turning to flowchart diagram 700 of method operations shown in FIG. 7, hot plugging a DIMM can further be understood, in accordance with one embodiment of the present invention. The method begins in operation 702, in which the host adapter chip is configured to include a single DIMM followed by operation 704 wherein an error is detected in the DIMM. In one instance, it may be detected that the DIMM is faulty while in a different embodiment, it may be determined that data to be cached into the DIMM is corrupted. Next, in operation 706, the user is provided with different mechanisms to recover data in the DIMM, depending on the error occurring during reading of data from the host memory or from the operating system. For instance, the error may have occurred during reading of data from the operating system in the computer system that includes RAID on hard disk drives. In such situation, if RAID level 0 is implemented, the portion of valid data that is still available is recovered and the user is informed of the loss of a portion of the data. If RAID level 1 is implemented, the copy of the data is implemented to restore the data in the faulty DIMM. If RAID level 5 is used, the lost data is regenerated. In a different scenario, where error has occurred during reading of data from host memory, a copy of the data may be recovered using the data in the host memory.

Continuing to operation 708, the user input to replace the DIMM is received. In one example, the interface between the user and the RAID on memory may be SMPro or SMOR. Next, in operation 710, the DIMM is hot plugged. That is, the power to the DIMM is shut down while the system power is still on. Then, the DIMM is removed and replaced in operation 712, which is followed by operation 714 wherein the connection to the replaced DIMM is established. In operation 716, the data recovered in operation 706 is restored into the replaced DIMM, if such request has been made by the user.

Thus, data in one DIMM can be recovered implementing the hot plug feature of the present invention, beneficially eliminating the necessity to shut down the system power. In this manner, the loss of memory and the valuable time associated with shutting down the system as well as reconfiguring the system is reduced.

The method operations in upgrading a DIMM by hot plugging the DIMM is illustrated in the method operations of flowchart 800 depicted in FIG. 8, in accordance with one embodiment of the present invention. The method begins in operation 802 in which a user's decision to upgrade a DIMM is received. Next, in operation 804, the user's decision is communicated to the firmware defined on RAID IOP. In one example, the SMPro or SMOR software is used to provide interaction between the firmware and the user.

Continuing to operation 806, the selected DIMM is hot plugged. That is, the power connected to the selected DIMM is shut down. This is advantageous, as in contrast to the prior art, the embodiments of the present invention do not necessarily have to use the operating system, the drivers, and application layers to interact with the firmware so as to hot plug the DIMM That is, in the embodiments of the present invention, depending on the operating system environment, the user can implement the operating system and one of the RAID user interfaces to communicate with the firmware almost directly. Thus, the embodiments of the present invention advantageously enable a user to hot plug the DIMM rather than shutting down the entire system or the host adapter chip.

In operation 806, the old DIMM is replaced with an upgraded DIMM. For instance, a DIMM having a 64 Mbytes memory size is upgraded to a DIMM having a 128 Mbytes memory size. Then, in operation 810, connection is established to the upgraded DIMM. That is, the firmware restores power to the replaced DIMM. Thereafter, in operation 812, the user is informed of the status of the upgraded DIMM. In one embodiment, SMPro or SMOR software interface is implemented to interact with the user.

FIG. 9 depicts the flowchart 900 of method operations performed in RAID level 1 on a plurality of DIMMs forming a RAID array of memory, in accordance with one embodiment of the present invention. The method begins in operation 902 in which a hard disk having data stored therein is provided. Next, in operation 904, a portion of data stored in the hard disk is read and is then written on a first address on a DIMM in operation 906. Proceeding to operation 908, the portion of data read in operation 904 is written to a second address located on a different DIMM. In this manner, data stored in a portion of a single hard disk drive is read and written into two DIMMs, increasing the reliability of data in a dedicated memory. In one example, using different addresses to write data is an indication of having physically different DIMMs.

FIGS. 10A-10G illustrate a plurality of exemplary Graphic User Interfaces (GUI) in a RAID On Memory Utility, in accordance with one embodiment of the present invention. In one example, upon booting the system, the RAID on Memory utility is initiated checking on substantially all DIMMs within the dedicated memory. As shown, the utility verifies the number of DIMMs in the system and provides the user with such information. Upon detecting the number of active DIMMs, using dialog boxes 1004 and 1006, the user is informed of the detection of the two DIMMs.

Thereafter, continuing with the initialization process, in boxes 1008 and 1010, the user is informed of the detection of an error in DIMM 1. Using boxes 1012 and 1014, the user is informed as to the need to replace DIMM 1. Using boxes 1016-1026, the user is given an option to replace DIMM 1. As shown, in boxes 1020 and 1022, the user has selected to replace DIMM 1. In boxes 1028 and 1030, the user is given the option to initiate the hot plugging of DIMM 1. As shown, the user is given an option to either press the start button 1034 or an exit button 1036 to leave the RAID on Memory utility. The user is further given an opportunity to seek help using the help button 1032.

Continuing to FIG. 10B, the progress of the RAID on Memory utility is shown in further detail. Implementing the box 1038, the user is informed of the initiation of hot plugging of DIMM 1. Then, in box 1040 depicted in FIG. 10C, the user is informed that data content of DIMM 1 is read followed by a box 1042, in which the power is shut down to DIMM 1. Next, in box 1044, the user is instructed to replace DIMM 1 followed by a request in box 1046 requesting pressing of a continue button 1048. The power to DIMM 1 is then restored as shown in box 1050 of FIG. 10F. Following the restoring of power to DIMM 1, the data content of DIMM 1 is restored as shown in box 1052 of FIG. 10G. As shown in box 1054, the user is then informed of the successful restoring of data to DIMM 1 confirmed by a done button 1056.

It must be appreciated by one having ordinary skill in the art that the SCSI controller of the present invention may be integrated into a motherboard of computer systems as opposed to being on an adapter card. Additionally, the present invention may be implemented using an appropriate type of software driven computer-implemented operation. As such, various computer-implemented operations involving data stored in computer systems to drive computer peripheral devices (i.e., in the form of software drivers) may be employed. These operations are those requiring physical manipulation of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared and otherwise manipulated. Further, the manipulations performed are often referred to in terms such as ascertaining, identifying, scanning, or comparing.

Any of the operations described herein that form part of the invention are useful machine operations. Any appropriate device or apparatus may be utilized to perform these operations. The apparatus may be specially constructed for the required purposes, or it may be a general purpose computer selectively activated or configured by a computer program stored in the computer. In particular, various general purpose machines may be used with computer programs written in accordance with the teachings herein, where it may be more convenient to construct a more specialized apparatus to perform the required operations.

Although the foregoing invention has been described in some detail for purposes of clarity of understanding, it will be apparent that certain changes and modifications may be practiced within the scope of the appended claims. Accordingly, the present embodiments are to be considered as illustrative and not restrictive, and the invention is not to be limited to the details given herein, but may be modified within the scope and equivalents of the appended claims. 

1. A method for protecting memory, comprising: reading a block of data from a storage drive; writing the block of data to a first memory portion and a second memory portion integrated on a single host adapter card coupled to the storage drive, wherein the first memory portion and the second memory portion are coupled to a single Redundant Array of Independent Disks (RAID) controller on the single host adapter card; and managing the first memory portion and the second memory portion to protect the block of data, wherein the block of data can be recovered from a non-failing portion in case either the first memory portion or the second memory portion fails.
 2. A method for protecting memory as recited in claim 1, wherein the first memory portion and the second memory portion integrated on the single host adapter card forming a memory protected by Redundant Array of Independent Disks (RAID).
 3. A method for protecting memory as recited in claim 2, wherein the memory is protected by a RAID level
 1. 4. A method for protecting memory as recited in claim 2, wherein the first memory portion and the second memory portion are respectively defined in a first virtual memory partition and a second virtual memory partition of a memory chip.
 5. A method for protecting memory as recited in claim 2, wherein the first memory portion and the second memory portion are respectively defined in a first memory chip and a second memory chip.
 6. A method for protecting memory as recited in claim 1, wherein the operation of managing the first memory portion and the second memory portion to protect the block of data is performed by a RAID Input/Output processor integrated on the single host adapter card.
 7. In a computer system having a single Redundant Array of Independent Disks (RAID) controller and a RAID memory, a method for performing RAID protection on data stored in the RAID memory, comprising: defining RAID protection for data stored in a set of storage drives using the single RAID controller, wherein the single RAID controller is integrated on a host adapter card; defining RAID protection for the RAID memory using the single RAID controller, the operation of defining RAID protection for the RAID memory including virtual partitioning of the RAID memory into at least two virtual memory partitions for copying said data stored in the set of storage drives, the RAID memory having the at least two virtual memory partitions defined in and coupled to the single RAID controller, and the RAID memory are integrated on the host adapter card; and operating the single RAID controller on each of said set of storage drives and the RAID memory having the virtual memory partitions, the single RAID controller operating to redundantly protect data to be stored in the RAID memory having the virtual memory partitions while reading and writing to the set of storage drives in accordance with the defined RAID protection of the set of storage drives.
 8. A method for performing RAID protection on data stored in the RAID memory as recited in claim 7, wherein the operation of defining RAID protection for the RAID memory includes defining a RAID level 0 protection.
 9. A method for performing RAID protection on data stored in the RAID memory as recited in claim 7, wherein the operation of defining RAID protection for the RAID memory includes defining a RAID level 1 protection.
 10. A method for performing RAID protection on data stored in the RAID memory as recited in claim 7, wherein the RAID memory is partitioned into two (2) virtual memory partitions.
 11. A method for performing RAID protection on data stored in the RAID memory as recited in claim 7, wherein the RAID memory is partitioned into four (4) virtual memory partitions.
 12. A method for performing RAID protection on data stored in the RAID memory as recited in claim 7, wherein the RAID memory includes a pair of memory chips.
 13. A method for performing RAID protection on data stored in the RAID memory as recited in claim 7, wherein the RAID memory includes four (4) memory chips.
 14. A system for increasing a performance and fault tolerance of a computer system, the system comprising: a set of storage drives configured to store data; a memory protected by Redundant Array of Independent Disks (RAID), the memory configured to be virtually partitioned into at least two virtual memory partitions for copying data stored in the set of storage drives, wherein the memory is integrated on a host adapter card; and a single RAID controller configured to store data in the set of storage drives into the memory having the at least two virtual memory partitions, wherein the memory having the virtual memory partitions is defined in and is coupled to the single RAID controller, the single RAID controller is further configured to redundantly protect data stored into the memory having the virtual memory partitions, and the single RAID controller is integrated on the host adapter card.
 15. A system for increasing a performance and fault tolerance of a computer system as recited in claim 14, wherein the single RAID controller implements a RAID level 0 to redundantly protect data stored into the memory.
 16. A system for increasing a performance and fault tolerance of a computer system as recited in claim 14, wherein the single RAID controller implements a RAID level 1 to redundantly protect data stored into the memory.
 17. A system for increasing a performance and fault tolerance of a computer system as recited in claim 14, wherein the memory includes a plurality of memory chips, each memory chip storing a portion of the data.
 18. A computer program embodied on a computer readable medium for performing Redundant Array of Independent Disks (RAID) on data stored in a RAID memory, the computer program comprising: a code segment that defines RAID protection for data stored in a set of storage drives using a single RAID controller, wherein the single RAID controller is integrated on a host adapter card; a code segment that defines RAID protection for the RAID memory using the single RAID controller, the code segment defining RAID protection for the RAID memory including a code segment for virtual partitioning of the RAID memory into at least two virtual memory partitions to copy data stored in the set of storage drives, the virtual memory partitions of the RAID memory being defined in and being coupled to the single RAID controller and the RAID memory is integrated on the host adapter card; and a code segment that operates the single RAID controller on each of the set of storage drives and the RAID memory, the single RAID controller operating to redundantly protect data to be stored in the RAID memory while reading and writing to the set of storage drives in accordance with the defined RAID protection of the set of storage drives.
 19. The computer program as recited in claim 18, wherein the code segment that defines RAID protection for the RAID memory includes a code segment that defines a RAID level 0 protection.
 20. The computer program as recited in claim 18, wherein the code segment that defines RAID protection for the RAID memory includes a code segment that defines a RAID level 1 protection.
 21. The computer program as recited in claim 18, wherein the code segment partitions the RAID memory into 2 (2) virtual memory partitions.
 22. The computer program as recited in claim 18, wherein the RAID memory includes a pair of memory chips. 